package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.HealthManager;
import com.itheima.pojo.Member;
import com.itheima.pojo.Report;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    List<Member> selectByCondition();
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();

    List<String> findManager();

    void addReport(Report report);

    void addRelaByIds(HashMap<String, Integer> hashMap);

    void deleteRelaByIds(@Param("memberId") Integer memberId, @Param("orderId") Integer orderId);

    void deleteReport(Integer orderId);

    List<String> findMemberName();

    /**
     * 根据姓名查询对应id值
     * @param name
     * @return
     */
    Integer findByName(String name);
}
